<?php

namespace app\admin\model;

use think\Model;
use think\model\concern\SoftDelete;

class Admin extends Model
{
    use SoftDelete;
    protected $deleteTime = 'delete_time';
    protected $autoWriteTimestamp = 'datetime';

    protected $auto = ['password'];

    const PAGESIZE = 15;

    protected function setPasswordAttr($value)
    {
        return md5(sha1($value).config('app.passwd_key'));
    }

}
